package thread.demo04.lock;

import java.util.ArrayList;
import java.util.List;

public class MyList {

	private static List<String> list = new ArrayList<String>();

	public static void add() {
		list.add("我是元素");
	}

	public static int size() {
		return list.size();
	}
}